import styled from "styled-components";

export const HotLeaderboardItemWrapper = styled.div`
    width: 230px;
    height: 100%;
    display: flex;
    flex-direction: column;
    .item-top {
        position: relative;
        width: 100%;
        height: 120px;
        padding: 20px 0 0 20px;
        display: flex;
        .item-top-img {
            width: 80px;
            height: 80px;
            background: url(${ props => props.url}) no-repeat center;
            background-size: 80px;
        }
        .item-top-mask {
            position: absolute;
            width: 80px;
            height: 80px;
            background-position: -145px -57px;
            left: 20px;
            top: 20px;
            cursor: pointer;
        }
        .item-top-right {
            padding: 6px 0 0 10px;
            span {
                font-size: 14px;
                color: #333;
                text-overflow: ellipsis;
                white-space: nowrap;
                word-wrap: normal;
                font-weight:bold;
            }
        }
        .item-top-right-img {
            margin-top: 10px;
            button {
                width: 22px;
                height: 22px;
                margin-right: 10px;
                cursor: pointer;
            }
            .item-top-right-play {
                background-position: -267px -205px;
                :hover {
                    background-position: -267px -235px;
                }
            }
            .item-top-right-add {
                background-position: -300px -205px;
                :hover {
                    background-position: -300px -235px;
                }
            }
        } 
    }

    .item-bottom {
        width: 100%;
        flex: 1;
        .more {
            display: flex;
            width: 100%;
            height: 32px;
            line-height: 32px;
            font-size: 12px;
            padding-right: 32px;
            flex-direction: row-reverse;
            a {
                color: #000;
                :hover {
                    text-decoration: underline;
                }
            }
        }
    }
`;